<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label">{{$value['desc']}}</label>
        <div class="layui-input-inline">
            <select name="{{$value['name']}}" lay-search>
                <option value="">请选择</option>
                {{foreach $value['option'] as $v}}
                    {{if isset($v['child'])}}
                        <optgroup label="{{$v[$value['key_value']['show']]}}">
                            {{foreach $v['child'] as $va}}
                            {{if $va[$value['key_value']['value']]==$value['value']}}
                            <option value="{{$va[$value['key_value']['value']]}}" selected="">{{$va[$value['key_value']['show']]}}</option>
                            {{else}}
                            <option value="{{$va[$value['key_value']['value']]}}">{{$va[$value['key_value']['show']]}}</option>
                            {{/if}}
                            {{/foreach}}
                        </optgroup>
                    {{else}}
                {{if $v[$value['key_value']['value']]==$value['value']}}
                <option value="{{$v[$value['key_value']['value']]}}" selected="">{{$v[$value['key_value']['show']]}}</option>
                {{else}}
                <option value="{{$v[$value['key_value']['value']]}}">{{$v[$value['key_value']['show']]}}</option>
                {{/if}}
                    {{/if}}
                {{/foreach}}
            </select>
            <br><span style="color: red">{{$value['tagging']}}</span>
        </div>
    </div>
</div>